import request from '@/utils/request'

export function getTicketList(params) {
  return request(({
    url: '/ticket/list',
    method: 'get',
    params
  }))
}

export function addTicket(params) {
  return request(({
    url: '/ticket/add',
    method: 'post',
    data: params
  }))
}

export function removeTicket(param) {
  return request(({
    url: 'ticket/remove',
    method: 'post',
    data: param
  }))
}

export function updateTicket(params) {
  return request(({
    url: 'ticket/update',
    method: 'post',
    data: params
  }))
}

export function getLogList(params) {
  return request(({
    url: '/log/list',
    method: 'get',
    params
  }))
}

export function getCountByStatus() {
  return request(({
    url: '/ticket/getCountByStatus',
    method: 'get'
  }))
}

